﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020009F3 RID: 2547
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class KMADMFOAJDL : IMessage<KMADMFOAJDL>, IMessage, IEquatable<KMADMFOAJDL>, IDeepCloneable<KMADMFOAJDL>, IBufferMessage
	{
		// Token: 0x1700203D RID: 8253
		// (get) Token: 0x0600723B RID: 29243 RVA: 0x00131A9D File Offset: 0x0012FC9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<KMADMFOAJDL> Parser
		{
			get
			{
				return KMADMFOAJDL._parser;
			}
		}

		// Token: 0x1700203E RID: 8254
		// (get) Token: 0x0600723C RID: 29244 RVA: 0x00131AA4 File Offset: 0x0012FCA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return KMADMFOAJDLReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700203F RID: 8255
		// (get) Token: 0x0600723D RID: 29245 RVA: 0x00131AB6 File Offset: 0x0012FCB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return KMADMFOAJDL.Descriptor;
			}
		}

		// Token: 0x0600723E RID: 29246 RVA: 0x00131ABD File Offset: 0x0012FCBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KMADMFOAJDL()
		{
		}

		// Token: 0x0600723F RID: 29247 RVA: 0x00131AD0 File Offset: 0x0012FCD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KMADMFOAJDL(KMADMFOAJDL other) : this()
		{
			this.skillId_ = other.skillId_;
			this.kDMLAJFLPFA_ = other.kDMLAJFLPFA_;
			this.battleTargetList_ = other.battleTargetList_.Clone();
			this.damage_ = other.damage_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007240 RID: 29248 RVA: 0x00131B29 File Offset: 0x0012FD29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KMADMFOAJDL Clone()
		{
			return new KMADMFOAJDL(this);
		}

		// Token: 0x17002040 RID: 8256
		// (get) Token: 0x06007241 RID: 29249 RVA: 0x00131B31 File Offset: 0x0012FD31
		// (set) Token: 0x06007242 RID: 29250 RVA: 0x00131B39 File Offset: 0x0012FD39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillId
		{
			get
			{
				return this.skillId_;
			}
			set
			{
				this.skillId_ = value;
			}
		}

		// Token: 0x17002041 RID: 8257
		// (get) Token: 0x06007243 RID: 29251 RVA: 0x00131B42 File Offset: 0x0012FD42
		// (set) Token: 0x06007244 RID: 29252 RVA: 0x00131B4A File Offset: 0x0012FD4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public double KDMLAJFLPFA
		{
			get
			{
				return this.kDMLAJFLPFA_;
			}
			set
			{
				this.kDMLAJFLPFA_ = value;
			}
		}

		// Token: 0x17002042 RID: 8258
		// (get) Token: 0x06007245 RID: 29253 RVA: 0x00131B53 File Offset: 0x0012FD53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BattleTargetList
		{
			get
			{
				return this.battleTargetList_;
			}
		}

		// Token: 0x17002043 RID: 8259
		// (get) Token: 0x06007246 RID: 29254 RVA: 0x00131B5B File Offset: 0x0012FD5B
		// (set) Token: 0x06007247 RID: 29255 RVA: 0x00131B63 File Offset: 0x0012FD63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public double Damage
		{
			get
			{
				return this.damage_;
			}
			set
			{
				this.damage_ = value;
			}
		}

		// Token: 0x06007248 RID: 29256 RVA: 0x00131B6C File Offset: 0x0012FD6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as KMADMFOAJDL);
		}

		// Token: 0x06007249 RID: 29257 RVA: 0x00131B7C File Offset: 0x0012FD7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(KMADMFOAJDL other)
		{
			return other != null && (other == this || (this.SkillId == other.SkillId && ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(this.KDMLAJFLPFA, other.KDMLAJFLPFA) && this.battleTargetList_.Equals(other.battleTargetList_) && ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(this.Damage, other.Damage) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600724A RID: 29258 RVA: 0x00131C00 File Offset: 0x0012FE00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SkillId != 0U)
			{
				num ^= this.SkillId.GetHashCode();
			}
			if (this.KDMLAJFLPFA != 0.0)
			{
				num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(this.KDMLAJFLPFA);
			}
			num ^= this.battleTargetList_.GetHashCode();
			if (this.Damage != 0.0)
			{
				num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(this.Damage);
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600724B RID: 29259 RVA: 0x00131C95 File Offset: 0x0012FE95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600724C RID: 29260 RVA: 0x00131C9D File Offset: 0x0012FE9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600724D RID: 29261 RVA: 0x00131CA8 File Offset: 0x0012FEA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SkillId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.SkillId);
			}
			if (this.KDMLAJFLPFA != 0.0)
			{
				output.WriteRawTag(17);
				output.WriteDouble(this.KDMLAJFLPFA);
			}
			this.battleTargetList_.WriteTo(ref output, KMADMFOAJDL._repeated_battleTargetList_codec);
			if (this.Damage != 0.0)
			{
				output.WriteRawTag(33);
				output.WriteDouble(this.Damage);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600724E RID: 29262 RVA: 0x00131D40 File Offset: 0x0012FF40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillId);
			}
			if (this.KDMLAJFLPFA != 0.0)
			{
				num += 9;
			}
			num += this.battleTargetList_.CalculateSize(KMADMFOAJDL._repeated_battleTargetList_codec);
			if (this.Damage != 0.0)
			{
				num += 9;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600724F RID: 29263 RVA: 0x00131DC0 File Offset: 0x0012FFC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(KMADMFOAJDL other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SkillId != 0U)
			{
				this.SkillId = other.SkillId;
			}
			if (other.KDMLAJFLPFA != 0.0)
			{
				this.KDMLAJFLPFA = other.KDMLAJFLPFA;
			}
			this.battleTargetList_.Add(other.battleTargetList_);
			if (other.Damage != 0.0)
			{
				this.Damage = other.Damage;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007250 RID: 29264 RVA: 0x00131E47 File Offset: 0x00130047
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007251 RID: 29265 RVA: 0x00131E50 File Offset: 0x00130050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 17U)
				{
					if (num == 8U)
					{
						this.SkillId = input.ReadUInt32();
						continue;
					}
					if (num == 17U)
					{
						this.KDMLAJFLPFA = input.ReadDouble();
						continue;
					}
				}
				else
				{
					if (num == 24U || num == 26U)
					{
						this.battleTargetList_.AddEntriesFrom(ref input, KMADMFOAJDL._repeated_battleTargetList_codec);
						continue;
					}
					if (num == 33U)
					{
						this.Damage = input.ReadDouble();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002B9A RID: 11162
		private static readonly MessageParser<KMADMFOAJDL> _parser = new MessageParser<KMADMFOAJDL>(() => new KMADMFOAJDL());

		// Token: 0x04002B9B RID: 11163
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002B9C RID: 11164
		public const int SkillIdFieldNumber = 1;

		// Token: 0x04002B9D RID: 11165
		private uint skillId_;

		// Token: 0x04002B9E RID: 11166
		public const int KDMLAJFLPFAFieldNumber = 2;

		// Token: 0x04002B9F RID: 11167
		private double kDMLAJFLPFA_;

		// Token: 0x04002BA0 RID: 11168
		public const int BattleTargetListFieldNumber = 3;

		// Token: 0x04002BA1 RID: 11169
		private static readonly FieldCodec<uint> _repeated_battleTargetList_codec = FieldCodec.ForUInt32(26U);

		// Token: 0x04002BA2 RID: 11170
		private readonly RepeatedField<uint> battleTargetList_ = new RepeatedField<uint>();

		// Token: 0x04002BA3 RID: 11171
		public const int DamageFieldNumber = 4;

		// Token: 0x04002BA4 RID: 11172
		private double damage_;
	}
}
